# -*- coding: utf-8 -*-

import numpy as np

def suffle(X,Y):
    assert len(X) == len(Y)
    l = len(X)
    #another method
    #index = [i for i in range(l)]
    #np.random.shuffle(index)
    index = permutation = np.random.permutation(l)
    _X = np.array(X)[index]
    _Y = np.array(Y)[index]
    return _X,_Y
    pass


if __name__ == "__main__":

    l1 = [
        [1,1],
        [2,2],
        [3,3],
        [4,4],
        [5,5],
        [6,6],
    ]
    l2 = [1,2,3,4,5,6]

    X,Y = suffle(l1,l2)

    print(X)
    print(Y)

    pass